<template>
  <div class="domainmore">
    <div class="headerbox">
      <!-- <el-form ref="filterForm" v-model="filterForm" inline>
        <el-form-item label="页面类型">
          <el-select v-model="filterForm.type" clearable placeholder="请选择">
            <el-option label="学生APP" :value="0"></el-option>
            <el-option label="教师APP" :value="1"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="学段">
          <el-select v-model="value" placeholder="请选择学段">
            <el-option v-for="item in filterForm.sectionList" :key="item.code" :label="item.name" :value="item.code">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" icon="el-icon-search" @click="serchTable">搜索</el-button>
        </el-form-item>
      </el-form> -->
      <el-button type="primary" icon="el-icon-arrow-left" @click="$router.go(-1)">返回</el-button>
    </div>
    <div class="morelist">
      <el-table :data="tableData" stripe style="width: 100%; margin-bottom: 20px">
        <el-table-column prop="id" label="ID"> </el-table-column>
        <el-table-column prop="name" label="页面名称"> </el-table-column>
        <!-- <el-table-column prop="identification" label="页面标识"> </el-table-column> -->
        <!-- <el-table-column prop="type" label="页面类型"> </el-table-column> -->
        <el-table-column prop="version" label="当前版本"> </el-table-column>
        <el-table-column prop="updateTime" label="更新时间"> </el-table-column>
        <el-table-column prop="updateName" label="发布人"> </el-table-column>
      </el-table>
    </div>
  </div>
</template>
<script>
import { getSection, pageversionByTemplate } from "@/api/basisMG";
export default {
  data() {
    return {
      formdata: {
        id: "section",
        codes: "",
      },
      value: "",
      filterForm: {
        type: "", //类型
        sectionList: [], //学段
      },
      tableData: [],
    };
  },
  created() {
    // this.getSectionList();
    this.pageversionByTemplate();
  },
  methods: {
    serchTable() {
      console.log("搜索");
    },
    // async getSectionList() {
    //   const res = await getSection(this.formdata);
    //   this.filterForm.sectionList = res.data.data.tagEnumVoList;
    // },

    async pageversionByTemplate() {
      const res = await pageversionByTemplate({ id: this.$route.query.templateId });
      this.tableData = res.data;
    },
  },
};
</script>
<style lang="scss"></style>
